-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Impl basic module and keeper methods #174
feat: Impl basic module and keeper methods #174
Conversation
x/asset/keeper/keeper.go
Outdated
bankKeeper: bankKeeper, | ||
ak: ak, | ||
PrivilegesMap: privilegesMap, | ||
func (k Keeper) AddPrivilege(priv types.PrivilegeI) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why this here, since privilege is set only during keeper initialization, we should not exposed an API to allow to add more privilege
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is a clean way to input the privileges instead of a map. Also, We want to explicitly add each privilege by a separate API call (like when we add middleware to ibc transfer for example) instead of grouping them together in a map.
add tests for msg server
…etwork into basic-methods
No description provided.